const HTTP=require("./request.js");
module.exports={
// 轮播图
    "getHomeBanner":function(){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata",
        })
    },
    //商品列表
    "getHomeGoods":function(data){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/search",
            data
        })
    },
    //商品详细
    "getGoodsDetail":function(data){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/detail",
            data
        })
    },
//商品分类
"getClassify":function(){
    return HTTP({
        url:"https://api-hmugo-web.itheima.net/api/public/v1/categories"
    })
},
//搜索商品
"searchCommodity":function(data){
return HTTP({
    url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch",
    data
})
}
}